* {
  margin: 0;
  padding: 0;
}

.jacket {
  max-width: 720px;
  width: 100vw;
  margin: 0 auto;
  /* background-color: #eee; */
  position: relative;
}

/* 页眉 */
header {
  width: 90%;
  height: 30px;
  padding: 10px 5%;
  background-color: skyblue;
  position: sticky;
  top: 0;


  .search {
    width: 100%;
    height: 30px;
    border-radius: 30px;
    background-color: #f7f7f7;

    a {
      display: flex;
      align-items: center;
      /* 清除下划线 */
      text-decoration: none;
      color: #999;

    }

    .icon {
      width: 30px;
      height: 30px;

      margin-right: 10px;

      img {
        width: 30px;
        height: 30px;
        border-radius: 30px;
      }
    }

  }

}

/* 内容 */
main {
  width: 94%;
  height: calc(100vh - 100px);
  overflow: auto;
  margin: 0 auto;
  display: flex;

  a {
    text-decoration: none;
    transition: 0.5s ease;
  }

  /* 内容定位 */
  .nav {
    overflow: auto;
    scrollbar-width: none;

    a {
      color: #666;
    }

    .txt {
      width: 76px;
      height: 45px;
      font-size: 12px;
      text-align: center;
      align-content: center;
    }
  }

  /* 内容 */
  section {
    overflow: auto;
    scrollbar-width: none;
    margin-left: 10px;
    flex: 3;

    .box {

      /* 内容头部 */
      .header {

        /* 广告 */
        .advertisement {
          width: 100%;
          height: 100px;

          img {
            width: 100%;
            height: 100%;
          }
        }

        /* 导航 */
        nav {
          font-size: 12px;
          margin: 5px;
          padding: 5px;
          border-bottom: 1px solid #666;
          display: flex;
          /* 溢出横向滚动 */
          overflow-x: scroll;
          /* position: fixed; */

        }
      }

      /* <!-- 推荐产品 --> */
      .main {
        .product {
          h4 {
            margin: 5px;
            /* background-color: wheat; */
          }

          .product-data {
            display: flex;
            background-color: #eee;
            margin: 10px;
            border-radius: 5px;


            .picture {
              img {
                width: 5rem;
              }
            }

            .txt {
              line-height: 1.5rem;
              font-size: 0.75rem;
              align-content: center;

              span {
                color: #c69768;
                border: 1px solid #c69768;
                margin-left: 10px;
                padding: 0 2px;
              }
            }
          }
        }
      }
    }
  }
}

/* 页脚 */
footer {

  max-width: 716px;
  width: 100vw;
  height: 3.125rem;
  margin: 0 auto;
  position: fixed;
  /* position: sticky; */
  bottom: 0;
  border: 1px solid #eee;
  background-color: #fff;
  align-content: center;
  /* width: 100%; */

  nav {
    display: flex;

    a {
      flex: 1;
      text-align: center;
      color: #999;
      /* 清除下滑线 */
      text-decoration: none;
    }

    .box {
      .icon {
        img {
          width: 16px;
          height: 16px;
        }
      }

      p {
        font-size: 12px;
      }
    }
  }
}